#ifndef __PLAYER_H_
#define __PLAYER_H_
#include "Scene.h"
#include "Prop.h"
#include <DynamicArray.h>
#include <MyString.h>

struct player
{
    int HP;
    int MAXHP;
    int attack;
    int defence;
    int x;
    int y;
    int level;
    int exp;
    int Gold;
    char* symbol;

    Weapon *w;                  //单持武器
    Defence *d;
    Medicament *m;
    DArray backpack;
};
typedef struct player Player;

void InitPlayer(Player *p);
void PrintPlayer(Player *p);
void PlayerMove(Player*p,char*(*map)[MAPSIZE],DArray *ms);
void LevelUp(Player *p);
void ShopInterface(Player *p);
void ShowBackpack(Player *p);

MyStr PlayerToString(Player *p);

#endif